package com.lhd.service;

import com.lhd.po.Type;

import java.util.List;

/**
 * Created by limi on 2017/10/16.
 */
public interface TypeService {

    Integer saveType(Type type);

    Type getType(Long id);

    Type getTypeByName(String name);

    List<Type> listType(Integer page);

    List<Type> listType();

    Integer updateType(Long id,Type type);

    Long deleteType(Long id);

    Integer countType();

    Integer countTypeByTypeId(Long typeId);

    List<Type> listTypeTop(Integer i);
}
